const app = getApp()
import Toast from "../../../miniprogram_npm/@vant/weapp/toast/toast";

import {
  ajaxGetUserGameRecordsOutVoList
} from '../../../api/my'
Page({
  data: {
    //自定义导航高度
    customNavHeight: app.globalData.customNavInfo.navHeight,
    baseURL: app.globalData.config.baseURL,

    currentIntegral:0,
    integralList: [],

  },
  onLoad(options) {
    const { k1UserId, integral } = options
    ajaxGetUserGameRecordsOutVoList({
      k1UserId: k1UserId,
    }).then(({data})=>{
      this.setData({
        currentIntegral: integral,
        integralList: data||[]
      })
    }).catch(err=>{
    })
  },
  onReady() {

  },
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },
})